import fetch from 'common/src/utils/fetch';
import baseUrl from './env';
import UTILS from "common/src/utils/utils";
import { param } from 'common/src/utils';
import axios from 'axios';
const BASER_SERV_URL = '/api/baseresservice';
function test(key) {
  return fetch({
      url: `${baseUrl}/positionApply/downPlan?ids=2`,
      method: 'get'
  });
}
// 获取当前系统时间
function getCurrentSystemTime(key) {
  return fetch({
      url: `${baseUrl}/common/getCurrentDate`,
      method: 'get'
  });
}
// 下载步骤1
function downloadGetKey(key) {
  return fetch({
      url: `${baseUrl}/export/result/${key}`,
      method: 'get'
  });
}
// 下载步骤2
function downloadGetPath(params) {
  return fetch({
      url: baseUrl + '/export/file?file=' + params.file + '&name=' + params.name,
      method: 'get'
  });
}
// 根据学院查询相关专业
function getMajorByCollage(data) {
  return fetch({
      url: baseUrl + "/common/getDegreeByCollege",
      method: 'post',
      data
  });
}
// 考核模板设置列表
function assessmentTempSetList (data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseTemplate/getList",
      method: 'post',
      data
  });
}
// 获取有指标明细的模板（包括考核和评价模板）
function getHasDetailTemp (data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseItemAndDetail/getSpecificTemplate",
      method: 'post',
      data
  });
}
// 新增考核模板
function addAssessTemp (data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseTemplate/add",
      method: 'post',
      data
  });
}
// 编辑考核模板
function editAssessTemp (data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseTemplate/update",
      method: 'post',
      data
  });
}
// 查询考核模版设置列表详情
function assessTempDetails (id) {
  return fetch({
      url: baseUrl + "/api/practiceBaseTemplate/get?id=" + id,
      method: 'get'
  });
}
// 查看考核指标表
function queryAssessIndexTable(id) {
  return fetch({
      url: baseUrl + "/api/practiceBaseTemplate/getDetail?id=" + id,
      method: 'get'
  });
}
// 导出考核模板表
function exportAssessTemp (data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseTemplate/export",
      method: 'post',
      data
  });
}
// 查询考核指标设置数据
function queryAssessIndexInfo (data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseItemAndDetail/getList",
      method: 'post',
      data
  });
}
// 保存考核指标
function saveAssessIndexInfo (data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseItemAndDetail/add",
      method: 'post',
      data
  });
}
// 考核明细分页查询
function assessDetailsList (data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseItemAndDetail/detail/getList",
      method: 'post',
      data
  });
}
// 保存考核指标明细
function saveAssessDetails (data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseItemAndDetail/detail/add",
      method: 'post',
      data
  });
}
// 查询实习评价模版设置列表
function queryInternEvalList (data) {
  return fetch({
      url: baseUrl + "/api/practiceRemarkTemplate/getList",
      method: 'post',
      data
  });
}
// 导出实习评价模板列表
function exportInternEvalInfo (data) {
  return fetch({
      url: baseUrl + "/api/practiceRemarkTemplate/export",
      method: 'post',
      data
  });
}
// 新增实习评价模板
function addInternEvalInfo (data) {
  return fetch({
      url: baseUrl + "/api/practiceRemarkTemplate/add",
      method: 'post',
      data
  });
}
// 更新实习评价模板
function updateInternEvalInfo (data) {
  return fetch({
      url: baseUrl + "/api/practiceRemarkTemplate/update",
      method: 'post',
      data
  });
}
// 查看实习评价模板详情
function queryInternEvalDetails(id) {
  return fetch({
      url: baseUrl + "/api/practiceRemarkTemplate/get?id=" + id,
      method: 'get'
  });
}
// 查看实习评价指标明细
function queryInternEvalIndexDetails(id) {
  return fetch({
      url: baseUrl + "/api/practiceRemarkTemplate/getDetail?id=" + id,
      method: 'get'
  });
}
// 查询实习评价指标设置列表
function queryInternEvalIndexSetList(data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseItemAndDetail/getList",
      method: 'post',
      data
  });
}
// 保存实习评价指标
function saveInternEvalIndex(data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseItemAndDetail/add",
      method: 'post',
      data
  });
}
// 实习评价指标明细查询
function queryInternEvalIndexDetailInfo(data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseItemAndDetail/detail/getList",
      method: 'post',
      data
  });
}
// 保存评价指标明细
function saveInternEvalIndexDetail(data) {
  return fetch({
      url: baseUrl + "/api/practiceBaseItemAndDetail/detail/add",
      method: 'post',
      data
  });
}
// 基地考核筛选列表分页查询接口
function queryBaseAssessList(data) {
  return fetch({
      url: baseUrl + "/baseExamine/getList",
      method: 'post',
      data
  });
}
// 根据考核设置ID查询明细，返回考核设置明细，涉及基地，涉及专家数据
function queryAssessDetails(id) {
  return fetch({
      url: baseUrl + "/baseExamine/get?id=" + id,
      method: 'get'
  });
}
// 导出基地考核设置接口，获取key值，为下载步骤1接口提供参数
function exportBaseAssessSet(data) {
  return fetch({
      url: baseUrl + "/baseExamine/export",
      method: 'post',
      data
  });
}
// 根据基地级别获取基地下拉
function getInvolveBases(baseLevel) {
  return fetch({
      url: baseUrl + "/base/getBaseListByBaseLevel?baseLevel=" + baseLevel,
      method: 'get'
  });
}
// 基地考核设置(保存设置)，返回保存对象
function saveBaseAssessSet(data) {
  return fetch({
      url: baseUrl + "/baseExamine/save",
      method: 'post',
      data
  });
}
// 基地考核设置(修改保存设置)，返回保存对象
function modifyBaseAssessSet(data) {
  return fetch({
      url: baseUrl + "/baseExamine/modify",
      method: 'post',
      data
  });
}
// 新增评审专家
function addReviewExperts(data) {
  return fetch({
      url: baseUrl + "/baseExamine/specialist/save",
      method: 'post',
      data
  });
}
// 批量删除评审专家(保存设置)，发布后的考核设置不能编辑删除专家
function batchDelReviewExperts(data) {
  return fetch({
      url: baseUrl + "/baseExamine/specialist/batch/remove",
      method: 'post',
      data
  });
}
// 根据考核设置主键id查询评审专家
function queryReviewExpertsById(id) {
  return fetch({
      url: baseUrl + "/baseExamine/specialist/get?id=" + id,
      method: 'get'
  });
}
// 发布基地考核设置（列表）
function publishBaseAssessSet(data) {
  return fetch({
      url: baseUrl + "/baseExamine/publish",
      method: 'post',
      data
  });
}
// 保存并发布基地考核设置 编辑状态下验证是否已发布，新增状态下无需验证
function saveAndPublishBaseAssessSet(data) {
  return fetch({
      url: baseUrl + "/baseExamine/savePublish",
      method: 'post',
      data
  });
}
// 删除基地考核设置
function removeBaseAssessSet(data) {
  return fetch({
      url: baseUrl + "/baseExamine/remove",
      method: 'post',
      data
  });
}
// 基地考核筛选列表分页查询接口
function queryBaseAssessData(data) {
  return fetch({
      url: baseUrl + "/baseExamine/examine/getList",
      method: 'post',
      data
  });
}
// 导出基地考核列表设置
function exportBaseAssessData(data) {
  return fetch({
      url: baseUrl + "/baseExamine/examine/export",
      method: 'post',
      data
  });
}
// 根据考核ID查询基地考核明细（不含专家评分）（编辑报送材料查询详情）
function queryBaseAssessDetailById(id) {
  return fetch({
      url: baseUrl + "/baseExamine/examine/get?id=" + id,
      method: 'get'
  });
}
// 基地考核材料报送保存或提交(保存或提交)
function saveOrSubmitBaseAssess(data) {
  return fetch({
      url: baseUrl + "/baseExamine/examine/saveAndSubmit",
      method: 'post',
      data
  });
}
// 根据专家账号和基地考核id查询考核明细，基地明细（专家评分页）
function queryBaseAndAssessDetail(params) {
  return fetch({
      url: baseUrl + "/baseGrade/examine/specialist/getBaseExamineGradeDetail?baseExamineId=" + params.baseExamineId + '&account=' + params.account,
      method: 'get'
  });
}
// 查询基地考核明细（含各专家评分详情）
function queryBaseAssessAndSpecialDetail(params) {
  return fetch({
      url: baseUrl + "/baseGrade/examine/getBaseExamineGradeDetail?id=" + params.id + '&templateId=' + params.templateId,
      method: 'get'
  });
}
// 专家考核指标表(录入查询)
function querySpecialListAssessIndex(params) {
  return fetch({
      url: baseUrl + "/baseGrade/examine/specialist/score/enter/getDetail?baseExamineId=" + params.baseExamineId + '&templateId=' + params.templateId + '&account=' + params.account,
      method: 'get'
  });
}
// 专家保存考核分数
function specialSaveAssessScore(data) {
  return fetch({
      url: baseUrl + "/baseGrade/examine/specialist/score/enter",
      method: 'post',
      data
  });
}
// 提交考核分数
function submitAssessScore(data) {
  return fetch({
      url: baseUrl + "/baseGrade/examine/specialist/score/submit",
      method: 'post',
      data
  });
}
// 导出专家评分明细，压缩包
function exportSpecialScoreDetail(data) {
  return fetch({
      url: baseUrl + "/baseGrade/examine/export/zip?id=" + data.id + '&templateId=' + data.templateId,
      method: 'post'
  });
}
// 验证导出专家评分明细，压缩包。
function validateSpecialScoreDetail(data) {
  return fetch({
      url: baseUrl + "/baseGrade/examine/export/zip/check?id=" + data.id + '&templateId=' + data.templateId,
      method: 'post'
  });
}
// 查询考核基地的考核批次列表（涉及数据分权）
function queryPublishedAssessBatch(params) {
  return fetch({
      url: baseUrl + "/baseExamine/examine/batch/getListAll",
      method: 'get'
  });
}
// 实习总结列表
function queryinternSummaryList(data) {
  return fetch({
      url: baseUrl + "/practiceSummary/getList",
      method: 'post',
      data
  });
}
// 导出实习总结
function exportInternSummaryInfo(data) {
  return fetch({
      url: baseUrl + "/practiceSummary/export",
      method: 'post',
      data
  });
}
// 新增/审核时候的实习总结基本信息
function queryInternSummaryBasicInfo(params) {
  return fetch({
      url: baseUrl + "/practiceSummary/get?studentId=" + params.studentId + '&id=' + params.id + '&status=' + params.status,
      method: 'get'
  });
}
// 填写实习总结
function addInternSummary(data) {
  return fetch({
      url: baseUrl + "/practiceSummary/add",
      method: 'post',
      data
  });
}
// 提交实习总结
function submitInternSummary(data) {
  return fetch({
      url: baseUrl + "/practiceSummary/submit",
      method: 'post',
      data
  });
}
// 编辑/删除实习总结
function operateInternSummary(data) {
  return fetch({
      url: baseUrl + "/practiceSummary/update",
      method: 'post',
      data
  });
}
// 录入成绩(需调用评价模板接口匹配对应的评价模板—在评价指标接口里面)
function recordScore(data) {
  return fetch({
      url: baseUrl + "/practiceSummary/record",
      method: 'post',
      data
  });
}
// 校外导师审核
function outSchoolTutorAudit(data) {
  return fetch({
      url: baseUrl + "/practiceSummary/out/check",
      method: 'post',
      data
  });
}
// 学院审核
function academyAudit(data) {
  return fetch({
      url: baseUrl + "/practiceSummary/in/check",
      method: 'post',
      data
  });
}
function urlEncode (str) {
  let temp = str;
  temp = (temp + '').toString();
  return encodeURIComponent(temp).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+');
}
// 判断导出项是否全部审核完成
function validateInternAssess(data) {
  return fetch({
      url: baseUrl + "/practiceSummary/checkExporetdDataPass",
      method: 'post',
      data
  });
}
// 导出实习考核表
function exportInternAssessTable(params) {
  return fetch({
      url: baseUrl + "/practiceSummary/exportBatchWordZip?selectRowIds=" + urlEncode(JSON.stringify(params.selectRowIds)),
      method: 'get'
  });
}
// 专家库维护列表查询
function approveAgree(data) {
  return fetch({
      url: "/api/practiceservice/specialist/getSpecialistList",
      method: 'post',
      data
  });
}
// 专家库维护编辑
function maintenanceEidt (data) {
  return fetch({
      url: "/api/practiceservice/specialist/update",
      method: 'post',
      data
  });
}
// 专家库维护新增
function maintenanceAdd (data) {
  return fetch({
      url: "/api/practiceservice/specialist/add",
      method: 'post',
      data
  });
}
// 专家库维护导出
function specialist(data) {
  return fetch({
      url: "/api/practiceservice/specialist/export",
      method: 'post',
      data
  });
}
// 查看实习设置列表
function  internshipSettings (data) {
  return fetch({
      url: baseUrl + "/postgraduateSetting/listPage",
      method: 'post',
      data
  });
}
// 实习设置列表新增
function  internshipSetAdd (data) {
  return fetch({
      url: baseUrl + "/postgraduateSetting/addSetting",
      method: 'post',
      data
  });
}
// 实习设置列表编辑
function  internshipSetUpdate (data) {
  return fetch({
      url: baseUrl + "/postgraduateSetting/update",
      method: 'post',
      data
  });
}
// 实习设置查看详情
function  getDetailInternship (data) {
  return fetch({
      url: baseUrl + "/postgraduateSetting/getDetail?id=" + data,
      method: 'get'
  });
}
// 专家库下载
function  downloadTemplate (data) {
  return fetch({
      url: baseUrl + "/specialist/downloadTemplate/1",
      method: 'get',
      responseType: 'blob'
    }).then(res => {
      UTILS.downloadFile(res, '专家库模板.xlsx', 'application/vnd.ms-excel;charset=utf-8');
  });
}
// 导师库下载
function  downloadLibrary  (data) {
  return fetch({
      url: baseUrl + "/specialist/downloadTemplate/2",
      method: 'get',
      responseType: 'blob'
    }).then(res => {
      UTILS.downloadFile(res, '导师库模板.xlsx', 'application/vnd.ms-excel;charset=utf-8');
  });
}
// 专家库导入
function  getDegreeByCollege (data) {
  return fetch({
      url: baseUrl + "/common/getDegreeByCollege",
      method: 'post',
      data
  });
}
// 根据姓名工号模糊查询
function  findTeacherList (data) {
  return fetch({
      url: BASER_SERV_URL + "/teacher/findTeacherList",
      method: 'post',
      data
  });
}
// 实习基地管理查询
function  internshipBase (data) {
  return fetch({
      url: baseUrl + "/base/listPage",
      method: 'post',
      data
  });
}
// 实习基地管理新增
function  internshipAdd (data) {
  return fetch({
      url: baseUrl + "/base/add",
      method: 'post',
      data
  });
}
// 实习基地管理保存
function  internshipPreservat (data) {
  return fetch({
      url: baseUrl + "/base/submit",
      method: 'post',
      data
  });
}
// 实习基地管理编辑
function  internshipEdit (data) {
  return fetch({
      url: baseUrl + "/base/edit",
      method: 'post',
      data
  });
}
// 实习基地管理批量启用
function  internEnable (data) {
  return fetch({
      url: baseUrl + "/base/enable",
      method: 'post',
      data
  });
}
// 实习基地管理批量禁用
function  internDisable (data) {
  return fetch({
      url: baseUrl + "/base/disable",
      method: 'post',
      data
  });
}
// 实习基地管理批量删除
function  internDelete (data) {
  return fetch({
      url: baseUrl + "/base/delete",
      method: 'post',
      data
  });
}
// 实习基地管理编辑（查看）
function  internGetDetail (data) {
  return fetch({
      url: baseUrl + "/base/getDetail?id=" + data,
      method: 'get'
  });
}
// 查看部门
function  getBaseListByBaseAccount (data) {
  return fetch({
      url: baseUrl + "/base/getBaseListByBaseAccount?account=" + data,
      method: 'get'
  });
}
// 查找id
function  getSession () {
  return fetch({
      url: baseUrl + "/common/getSession",
      method: 'get'
  });
}
// 实习基地管理特殊编辑
function  specialEdit (data) {
  return fetch({
      url: baseUrl + "/base/specialEdit",
      method: 'post',
      data
  });
}
// 实习基地管理审核查询
function  getActDetailAudit  (data) {
  return fetch({
      url: baseUrl + "/base/getActDetail?actNo=" + data,
      method: 'get'
  });
}
// 实习基地管理导出
function  internshipExportList (data) {
  return fetch({
    url: baseUrl + "/base/exportList",
    method: 'post',
    responseType: 'blob',
    data
  }).then(res => {
    UTILS.downloadFile(res, '实习基地清单.xls', 'application/vnd.ms-excel;charset=utf-8');
  });
}
// 审核通过
function  internshipAgree (data) {
  return fetch({
      url: baseUrl + "/pWorkflow/approve/pass",
      method: 'post',
      data
  });
}
// 审核不通过
function  internshipRefuse (data) {
  return fetch({
      url: baseUrl + "/pWorkflow/approve/reject",
      method: 'post',
      data
  });
}
// 实习基地管理导入
function  internshipRmport (data) {
  return fetch({
      url: baseUrl + "/base/import",
      method: 'post',
      data
  });
}
// 实习基地管理下载导入模板
function  internshipDownTemplate (data) {
  return fetch({
    url: baseUrl + "/base/downTemplate",
    method: 'get',
    responseType: 'blob'
  }).then(res => {
    UTILS.downloadFile(res, '实习基地管理模板.xlsx', 'application/vnd.ms-excel;charset=utf-8');
  });
}
// 实习进展情况查询
function  internshipGetList (data) {
  return fetch({
      url: baseUrl + "/practiceSituation/getList",
      method: 'post',
      data
  });
}
// 查询登录用户(判断当前登录用户的角色)
// innerRole 1: 管理员 2：教务员 3：导师 3.1：校内导师 3.2：校外导师 4：老师 5：留办老师 6：学生
function  getPracticeRoleBySession () {
  return fetch({
      url: baseUrl + "/practiceSituation/getPracticeRoleBySession",
      method: 'get'
  });
}
// 实习进展情况新增查询
function  getPracticeSituation (data) {
  return fetch({
      url: baseUrl + "/practiceSituation/get?studentId=" + data,
      method: 'get'
  });
}
// 实习进展情况审核查询
function  getPracticeSituationId (data,id) {
  return fetch({
      url: baseUrl + "/practiceSituation/get?studentId=" + data + "&situationId=" + id,
      method: 'get'
  });
}
// 实习进展情况新增
function  getPracticeSituationAdd (data) {
  return fetch({
      url: baseUrl + "/practiceSituation/add",
      method: 'post',
      data
  });
}
// 实习进展情况审批数据
function  getPracticeGetActDetail (data) {
  return fetch({
      url: baseUrl + "/practiceSituation/getActDetail?actNo=" + data,
      method: 'get'
  });
}
// 实习进展情况编辑
function  postPracticeSituation (data) {
  return fetch({
      url: baseUrl + "/practiceSituation/update",
      method: 'post',
      data
  });
}
// 实习进展情况导出
function  postPracticeSituaExport (data) {
  return fetch({
      url: baseUrl + "/practiceSituation/export",
      method: 'post',
      data
  });
}
// 我的实践计划
function  getQueryPracticePlan (data) {
  return fetch({
      url: baseUrl + "/positionApply/queryPracticePlan",
      method: 'get'
  });
}
// 我的实践计划查询导师信息
function  getQueryPract (data) {
  return fetch({
      url: baseUrl + "/specialist/getSpecialistById?id=" + data,
      method: 'get'
  });
}
// 基地实习统计表
function  postPracticeStatistic (data) {
  return fetch({
      url: baseUrl + "/base/getPracticeStatistic",
      method: 'post',
      data
  });
}
// 基地实习统计表
function  getDeleteById (data) {
  return fetch({
      url: baseUrl + "/postgraduateSetting/deleteById?id=" + data,
      method: 'get'
  });
}
// 根据条件，分页查询课程
function getCourseList(data) {
  return fetch({
    url: '/api/cultureservice/courses/page',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}
// 基地实习统计表导出
function  exportPracticeStatisticList (data) {
  return fetch({
    url: baseUrl + "/base/exportPracticeStatisticList",
    method: 'post',
    responseType: 'blob',
    data
  }).then(res => {
    UTILS.downloadFile(res, '基地实习统计清单.xls', 'application/vnd.ms-excel;charset=utf-8');
  });
}
// 我的实践计划
function  exportdownPlan (data) {
  const axiosInstance = axios.create();
  axiosInstance({
    url: baseUrl + '/positionApply/downPlan?ids=' + data,
    method: 'get',
    responseType: 'blob'
  }).then(res => {
    let listDate = decodeURIComponent(res.headers['content-disposition'].split('filename=')[1]);
    listDate = listDate.split('"')[1];
    UTILS.downloadFile(res.data, listDate, 'application/vnd.ms-excel;charset=utf-8');
  });
}
// 实习基地管理判断登录
function  getCurrentRole (data) {
  return fetch({
      url: baseUrl + "/base/getCurrentRole",
      method: 'get'
  });
}
// 学期
function  schoolCalendar (data) {
  return fetch({
      url: "/api/baseresservice/schoolCalendar/list",
      method: 'get'
  });
}
// 获取实习需求报名申报时间范围
function  getSettingWhileAddPosition (data) {
  return fetch({
      url: baseUrl + "/postgraduateSetting/getSettingWhileAddPosition?calendarYear=" + data.calendarYear + '&calendarTerm=' + data.calendarTerm + '&major=' + data.major + '&college=' + data.college,
      method: 'get'
  });
}
// 获取实习需求报名查询
function  positionNeedsRequirement (data) {
  return fetch({
      url: baseUrl + "/positionNeeds/listPage",
      method: 'post',
      data
  });
}
// 实习需求报名导出
function  exportNeedsList (data) {
  return fetch({
    url: baseUrl + "/positionNeeds/exportNeedsList",
    method: 'post',
    responseType: 'blob',
    data
  }).then(res => {
    UTILS.downloadFile(res, '实习需求报名.xls', 'application/vnd.ms-excel;charset=utf-8');
  });
}
// 获取实习需求报名查询
function  positionNeedsAddNeeds (data) {
  return fetch({
      url: baseUrl + "/positionNeeds/addNeeds",
      method: 'post',
      data
  });
}
// 获取实习需求报名查询
function  pgetDetailNeeds (data) {
  return fetch({
      url: baseUrl + "/positionNeeds/getDetail?id=" + data,
      method: 'get'
  });
}
// 获取实习需求报名编辑
function  positionNeedsEdit (data) {
  return fetch({
      url: baseUrl + "/positionNeeds/edit",
      method: 'post',
      data
  });
}
// 获取审核流详情
function  getActDetailNeeds (data) {
  return fetch({
      url: baseUrl + "/positionNeeds/getActDetail?actNo=" + data,
      method: 'get'
  });
}
// 获取实习需求报名删除
function  getpositionNeedsDelete (data) {
  return fetch({
      url: baseUrl + "/positionNeeds/delete?id=" + data,
      method: 'get'
  });
}
// 获取实习需求报名申请
function  positionApplyAddApply (data) {
  return fetch({
      url: baseUrl + "/positionApply/addApply",
      method: 'post',
      data
  });
}
// 获取实习需求报名获取学生信息
function  getStuDetailByClass (data) {
  return fetch({
      url: "/api/studentservice/studentDetailInfo/getStatusInfoByStudentId?studentId=" + data.id,
      // url: "/api/studentservice/studentInfo/findStuInfoListByUserId?studentId=" + data.id,
      // url: baseUrl + "/studentDetailInfo/stuDetailByClass",
      method: 'get',
      data
  });
}
// 根据学生姓名或学号获取学生信息
function  postFindStuInfoList (data) {
  return fetch({
      url: "/api/studentservice/studentInfo/findStuInfoList",
      method: 'post',
      data
  });
}
// 获取当前登录用户
function  getCommonCurrentRole () {
  return fetch({
      url: baseUrl + "/common/getCurrentRole",
      method: 'get'
  });
}

// 实习报名查询列表
function registration(data) {
  return fetch({
    url: baseUrl + "/positionApply/listPage",
    method: 'post',
    data
  });
}

// 实习报名查看详情
function regGetDetail(data) {
  return fetch({
    url: baseUrl + "/positionNeeds/getDetail?id=" + data,
    method: 'get'
  });
}

// 删除撤销
function revokeRegistration(data) {
  return fetch({
    url: baseUrl + "/positionApply/revoke",
    method: 'post',
    data
  });
}

// 实习报名审核
function getregDetailAudit(data) {
  return fetch({
    url: baseUrl + "/positionApply/getActDetail?actNo=" + data,
    method: 'get'
  });
}

// 实习报名审核导出
function exportRegistration(data) {
  return fetch({
    url: baseUrl + "/positionApply/exportApplyList",
    method: 'post',
    responseType: 'blob',
    data
  }).then(res => {
    UTILS.downloadFile(res, '实习报名审核清单.xls', 'application/vnd.ms-excel;charset=utf-8');
  });
}

// 查询实习导师
function regGetSpecialList(params) {
  return fetch({
    url: baseUrl + "/positionApply/getSpecialList",
    method: 'get'
  });
}

// 实习报名导师信息
function  getSpecialistById (data) {
  return fetch({
      url: baseUrl + "/specialist/getSpecialistById?id=" + data,
      method: 'get'
  });
}

// 实习报名审核通过
function  regAgree (data) {
  return fetch({
      url: baseUrl + "/positionApply/approve/pass",
      method: 'post',
      data
  });
}

export default {
    'test': test,
    'getCurrentSystemTime': getCurrentSystemTime,
    'getSession': getSession,
    'getBaseListByBaseAccount': getBaseListByBaseAccount,
    'internGetDetail': internGetDetail,
    'internDelete': internDelete,
    'internDisable': internDisable,
    'internEnable': internEnable,
    'internshipEdit': internshipEdit,
    'internshipPreservat': internshipPreservat,
    'internshipAdd': internshipAdd,
    'internshipBase': internshipBase,
    'approveAgree': approveAgree,
    'specialist': specialist,
    'findTeacherList': findTeacherList,
    'maintenanceEidt': maintenanceEidt,
    'maintenanceAdd': maintenanceAdd,
    'internshipSetAdd': internshipSetAdd,
    'internshipSetUpdate': internshipSetUpdate,
    'getDegreeByCollege': getDegreeByCollege,
    'downloadTemplate': downloadTemplate,
    'downloadLibrary': downloadLibrary,
    'internshipSettings': internshipSettings,
    'assessmentTempSetList': assessmentTempSetList,
    'addAssessTemp': addAssessTemp,
    'editAssessTemp': editAssessTemp,
    'assessTempDetails': assessTempDetails,
    'queryAssessIndexTable': queryAssessIndexTable,
    'exportAssessTemp': exportAssessTemp,
    'downloadGetKey': downloadGetKey,
    'downloadGetPath': downloadGetPath,
    'queryAssessIndexInfo': queryAssessIndexInfo,
    'saveAssessIndexInfo': saveAssessIndexInfo,
    'assessDetailsList': assessDetailsList,
    'saveAssessDetails': saveAssessDetails,
    'getMajorByCollage': getMajorByCollage,
    'queryInternEvalList': queryInternEvalList,
    'exportInternEvalInfo': exportInternEvalInfo,
    'addInternEvalInfo': addInternEvalInfo,
    'updateInternEvalInfo': updateInternEvalInfo,
    'queryInternEvalDetails': queryInternEvalDetails,
    'queryInternEvalIndexDetails': queryInternEvalIndexDetails,
    'queryInternEvalIndexSetList': queryInternEvalIndexSetList,
    'saveInternEvalIndex': saveInternEvalIndex,
    'queryInternEvalIndexDetailInfo': queryInternEvalIndexDetailInfo,
    'saveInternEvalIndexDetail': saveInternEvalIndexDetail,
    'specialEdit': specialEdit,
    'getActDetailAudit': getActDetailAudit,
    'internshipExportList': internshipExportList,
    'internshipAgree': internshipAgree,
    'internshipRefuse': internshipRefuse,
    'internshipRmport': internshipRmport,
    'internshipDownTemplate': internshipDownTemplate,
    'queryBaseAssessList': queryBaseAssessList,
    'queryAssessDetails': queryAssessDetails,
    'exportBaseAssessSet': exportBaseAssessSet,
    'getInvolveBases': getInvolveBases,
    'saveBaseAssessSet': saveBaseAssessSet,
    'modifyBaseAssessSet': modifyBaseAssessSet,
    'addReviewExperts': addReviewExperts,
    'batchDelReviewExperts': batchDelReviewExperts,
    'queryReviewExpertsById': queryReviewExpertsById,
    'publishBaseAssessSet': publishBaseAssessSet,
    'saveAndPublishBaseAssessSet': saveAndPublishBaseAssessSet,
    'removeBaseAssessSet': removeBaseAssessSet,
    'internshipGetList': internshipGetList,
    'getPracticeRoleBySession': getPracticeRoleBySession,
    'getPracticeSituation': getPracticeSituation,
    'getPracticeSituationAdd': getPracticeSituationAdd,
    'getPracticeSituationId': getPracticeSituationId,
    'getPracticeGetActDetail': getPracticeGetActDetail,
    'postPracticeSituation': postPracticeSituation,
    'postPracticeSituaExport': postPracticeSituaExport,
    'getQueryPracticePlan': getQueryPracticePlan,
    'getQueryPract': getQueryPract,
    'postPracticeStatistic': postPracticeStatistic,
    'getCourseList': getCourseList,
    'getDeleteById': getDeleteById,
    'exportPracticeStatisticList': exportPracticeStatisticList,
    'exportdownPlan': exportdownPlan,
    'queryBaseAssessData': queryBaseAssessData,
    'exportBaseAssessData': exportBaseAssessData,
    'queryBaseAssessDetailById': queryBaseAssessDetailById,
    'saveOrSubmitBaseAssess': saveOrSubmitBaseAssess,
    'queryBaseAndAssessDetail': queryBaseAndAssessDetail,
    'queryBaseAssessAndSpecialDetail': queryBaseAssessAndSpecialDetail,
    'querySpecialListAssessIndex': querySpecialListAssessIndex,
    'specialSaveAssessScore': specialSaveAssessScore,
    'submitAssessScore': submitAssessScore,
    'exportSpecialScoreDetail': exportSpecialScoreDetail,
    'queryPublishedAssessBatch': queryPublishedAssessBatch,
    'getHasDetailTemp': getHasDetailTemp,
    'getCurrentRole': getCurrentRole,
    'schoolCalendar': schoolCalendar,
    'getSettingWhileAddPosition': getSettingWhileAddPosition,
    'positionNeedsRequirement': positionNeedsRequirement,
    'exportNeedsList': exportNeedsList,
    'positionNeedsAddNeeds': positionNeedsAddNeeds,
    'pgetDetailNeeds': pgetDetailNeeds,
    'validateSpecialScoreDetail': validateSpecialScoreDetail,
    'positionNeedsEdit': positionNeedsEdit,
    'getActDetailNeeds': getActDetailNeeds,
    'getpositionNeedsDelete': getpositionNeedsDelete,
    'positionApplyAddApply': positionApplyAddApply,
    'getStuDetailByClass': getStuDetailByClass,
    'validateSpecialScoreDetail': validateSpecialScoreDetail,
    'queryinternSummaryList': queryinternSummaryList,
    'exportInternSummaryInfo': exportInternSummaryInfo,
    'queryInternSummaryBasicInfo': queryInternSummaryBasicInfo,
    'addInternSummary': addInternSummary,
    'submitInternSummary': submitInternSummary,
    'operateInternSummary': operateInternSummary,
    'recordScore': recordScore,
    'outSchoolTutorAudit': outSchoolTutorAudit,
    'academyAudit': academyAudit,
    'validateInternAssess': validateInternAssess,
    'exportInternAssessTable': exportInternAssessTable,
    'postFindStuInfoList': postFindStuInfoList,
    'getCommonCurrentRole': getCommonCurrentRole,
    'getDetailInternship': getDetailInternship,
    'registration': registration,
    'getregDetailAudit': getregDetailAudit,
    'revokeRegistration': revokeRegistration,
    'exportRegistration': exportRegistration,
    'regGetDetail': regGetDetail,
    'regGetSpecialList': regGetSpecialList,
    'regAgree':regAgree,
    'getSpecialistById':getSpecialistById
};

